package com.zt.student.dao;

import com.zt.common.pojo.homework.Homework;
import com.zt.student.dto.HomeworkWithClassDTO;
import com.zt.student.dto.HomeworkDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2022-02-12
 */
@Mapper
public interface HomeworkDao {

    List<HomeworkDTO> getByClassId(@Param("classId") int classId, @Param("studentId") String studentId);

    List<HomeworkWithClassDTO> getBySemester(@Param("semester") String semester, @Param("studentId") String studentId);

    Homework getByHomeworkId(int homeworkId);
}
